home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000169_icon-group-sender _Sat Jun 11 01:15:37 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Sun, 12 Jun 1994 14:14:29 MST
  2. Via: uk.ac.edinburgh.festival; Sat, 11 Jun 1994 09:15:04 +0100
  3. Date: 11 Jun 94 09:14:58 BST
  4. From: R J Hare <rjhare@festival.ed.ac.uk>
  5. Subject: Databases
  6. To: icon-group@cs.arizona.edu
  7. Organisation: Edinburgh University Computing Service
  8. Message-Id: <9406110914.aa19146@uk.ac.ed.festival>
  9. Status: RO
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. Thanks to all who reponded to my query about databases.
  13.  
  14. Suggestions covered a wide range of options and included:
  15.  
  16. Use a flat file database
  17. Use Shoebox (or some other proprietary db)
  18. Use BiBTeX (I actually already use Scribe for my works db of papers)
  19. Use Awk (example in the Awk book)
  20. Use the Icon db progams in ipl
  21. Use the example in Alan Corres' book
  22.  
  23. I also had a look at:
  24.  
  25. Programming Tools (K & R)
  26. Algorithms in Snobol 4 (Gimpel)
  27. String & List Processing in Snobol 4 (Griswold)
  28.  
  29. In the end, for various reasons to do with portability, simplicity, cost,
  30. compute-literacy of the end-users (well, some of them - probably including
  31. me!), and, finally, the fact that I like programming in Icon, I will be going
  32. for a combination of the first and last options, ie: a flat file database
  33. using the db program in Corres' book as a starting point.
  34.  
  35. This means that I can store the database as a simple text file with lines of
  36. the form:
  37.  
  38. author|initials|title|publisher|date|isbn|price|date_of_entry
  39.  
  40. and read such records into whatever Icon structure is necessary for the task
  41. in hand. For example to add records, I don't even need to read the db in, I
  42. just open the file in "a" mode. When I want to sort the file, I just call in
  43. the system sort. I only really need to read in the whole shootn' match when I
  44. want to do a search or report.
  45.  
  46. This approach will get me on the air asap, but allows for more sophisticated
  47. programming as I have new ideas - all that is necessary is that I maintain the
  48. format of the flat db file (which I can't see any reason to change - all the
  49. information I want about my book collection is there).
  50.  
  51. I haven't yet given much thought to how to modify this to cope with
  52. discs/tapes/cds which have pieces by different composers on them.
  53.  
  54. If anyone is interested, let me know and I will keep them informed about this
  55. (and I stress) simple project.
  56.  
  57. Roger Hare.
  58.